package cn.edu.neusoft.dnui.startproject.factory;

import cn.edu.neusoft.dnui.startproject.iface.PhoneIface;
import cn.edu.neusoft.dnui.startproject.model.Phone91Model;
import cn.edu.neusoft.dnui.startproject.model.PhoneModel;

/**
 * Created by Junsheng on 2016/12/14.
 */

public class PhoneFactory {
    public static PhoneIface getInstance(String url){
        if(url.equals("baidu")){
            return PhoneModel.getInstance();
            //return new PhoneModel();
        }
        else{
            return Phone91Model.getInstance();
           // return new Phone91Model();
        }
    }
}
